/**
 *
 */
package com.ce.pms.house.vo;

import com.ce.pms.common.web.ICacheManage;
import com.sitechasia.webx.core.model.IViewObject;

/**
 * 功能描述: HouseGrpVO
 * <p>版权所有：中企动力
 * <p>未经本公司许可，不得以任何方式复制或使用本程序任何部分
 *
 * @author  付湘辉
 * Created on：  2008-7-4
 * @author  付湘辉
 * update on：  2008-7-4
 */

public class HouseGrpVO implements IViewObject, ICacheManage<HouseGrpVO>{

	/**
	 * long：serialVersionUID
	 */
	private static final long serialVersionUID = -4382303285204932509L;

	/**
	 * 楼栋id
	 */
	private Long buildingId;

	/**
	 * 楼栋Name
	 */
	private String buildingName;

	/*****************************************************************/
	/**
	 * 单元主键
	 */
	private Long keyword;

	/**
	 * 单元名称
	 */
	private String name;

	/**
	 * 建设期id
	 */
	private Long projectId;

	/* (non-Javadoc)
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	public int compareTo(HouseGrpVO o) {
		String anotherName = o.getName();
		if (this.name != null) {
			return this.name.compareToIgnoreCase(anotherName);
		}else if (anotherName == null) {
			return 0;
		}
		return -1;

	}

	/**
	 * 功能描述: 获取buildingId
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @return 返回结果
	 */
	public Long getBuildingId() {
		return this.buildingId;
	}

	/**
	 * 功能描述: 获取buildingName
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @return 返回结果
	 */
	public String getBuildingName() {
		return this.buildingName;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#getHasSave()
	 */
	public String getHasSave() {
		// TODO Auto-generated method stub
		return null;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#getIndex()
	 */
	public Integer getIndex() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * 功能描述: 获取keyword
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @return 返回结果
	 */
	public Long getKeyword() {
		return this.keyword;
	}

	/**
	 * 功能描述: 获取name
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @return 返回结果
	 */
	public String getName() {
		return this.name;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#getOpratorStatus()
	 */
	public String getOpratorStatus() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @return the projectId
	 */
	public Long getProjectId() {
		return this.projectId;
	}

	/**
	 * 功能描述: 设置buildingId
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @param buildingId the buildingId to set
	 */
	public void setBuildingId(Long buildingId) {
		this.buildingId = buildingId;
	}


/**
	 * 功能描述: 设置buildingName
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @param buildingName the buildingName to set
	 */
	public void setBuildingName(String buildingName) {
		this.buildingName = buildingName;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#setHasSave(java.lang.String)
	 */
	public void setHasSave(String hasSave) {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#setIndex(java.lang.Integer)
	 */
	public void setIndex(Integer index) {
		// TODO Auto-generated method stub

	}

	/**
	 * 功能描述: 设置keyword
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @param keyword the keyword to set
	 */
	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	/**
	 * 功能描述: 设置name
	 *
	 * @author 付湘辉
	 * Created on:2008-7-4
	 *
	 * 修改原因：
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/* (non-Javadoc)
	 * @see com.ce.pms.common.web.ICacheManage#setOpratorStatus(java.lang.String)
	 */
	public void setOpratorStatus(String opratorStatus) {
		// TODO Auto-generated method stub

	}

	/**
	 * @param projectId the projectId to set
	 */
	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

}
